package com.af.security.jwt.token;


import com.af.security.jwt.JwtAuthenticationException;
import org.springframework.security.core.Authentication;

import javax.servlet.http.HttpServletRequest;

public interface JwtTokenService {

    String getHeaderKey();
    String getTokenPrefix();
    String createToken(Authentication authentication) throws JwtAuthenticationException;
    String getTokenValue(HttpServletRequest request) throws JwtAuthenticationException;
    Authentication getAuthentication(String token) throws JwtAuthenticationException;
}
